#include "select.h"
#include <iostream>
void test5();
void test()
{
	std::cout << select_0_2(5,10,std::less<int>()) << std::endl;
	std::cout << select_0_2(10,5,std::less<int>()) << std::endl;
	std::cout << select_1_2(5,10,std::less<int>()) << std::endl;
	std::cout << select_1_2(10,5,std::less<int>()) << std::endl << std::endl;

	std::cout << select_0_3(5,10,15,std::less<int>()) << std::endl;
	std::cout << select_2_3(5,10,15,std::less<int>()) << std::endl;
	std::cout << select_1_3(5,10,15,std::less<int>()) << std::endl << std::endl;

	std::cout << select_1_4(5,10,15,20,std::less<int>()) << std::endl;
	std::cout << select_2_4(5,10,15,20,std::less<int>()) << std::endl;
}

int main()
{
	test5();
}